// DOM操作->X
// 数据驱动->视图
Page({
  data: {
    title: 'Hello World',
    count: 0,
    num: [1,2,3,4,5],
    isShow: true
  },
  toggleList(){
    this.setData({
      isShow: !this.data.isShow
    })
  },
  changeList(){
    this.setData({
      num: ['a', 'b', 'c']
    })
  },
  log: function(){
    console.log(123)
  },
  change(){
    console.log(this)
    this.setData({
      title: 'hello WEIXIN'
    })
  },
  addCount(){
    this.setData({
      count: this.data.count + 1
    })
  },
  onLoad() {
    
  }
})
